package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderMapper {

    //判断同一个用户是否预约了同一天的同一个套餐
    Integer findOrderAndOrderSettingByDateAndMemberId(Order order);

    //添加预约
    void addOrder(Order order);


    //查询预约详情
    Map findOrderDetail(@Param("id") Integer id);

    String findOrderIdById(@Param("oid") Integer oid);

    void updateState(@Param("orderId") String orderId);

    Order findStatus(@Param("oid") Integer oid);
}
